/**
  * Copyright (c) CSIRO Australia, 2009
  *
  * @author $Author: jia020 $
  * @version $Id: PdspConst.java 643 2009-05-20 00:20:55Z jia020 $
  */
package au.csiro.nt.pdsp.client;

/**
 * All Const definition for PDSP gwt client.
 *
 */
public interface PdspConst {
	/**
	 * Const definition for XML formated data.
	 */	
	public final String COLUMN_NAME_CENTRELINKID = "centrelinkid";
	public final String COLUMN_TYPE_CENTRELINKID ="string";	
	public final String COLUMN_NAME_DRIVERID = "driverid";
	public final String COLUMN_TYPE_DRIVERID ="string";
	public final String COLUMN_NAME_FIRSTNAME = "firstname";
	public final String COLUMN_TYPE_FIRSTNAME ="string";
	public final String COLUMN_NAME_LASTNAME = "lastname";
	public final String COLUMN_TYPE_LASTNAME ="string";
	public final String COLUMN_NAME_MIDDLENAME = "middlename";
	public final String COLUMN_TYPE_MIDDLENAME ="string";		
	public final String COLUMN_NAME_BIRTHDAY = "birthday";
	public final String COLUMN_TYPE_BIRTHDAY ="date";
	public final String COLUMN_NAME_RESIDENTIALADDRESS = "residentialaddress";
	public final String COLUMN_TYPE_RESIDENTIALADDRESS ="string";	
	public final String COLUMN_NAME_WORKINGALADDRESS = "workingaddress";
	public final String COLUMN_TYPE_WORKINGALADDRESS ="string";	
	public final String COLUMN_NAME_SUBURB = "suburb";
	public final String COLUMN_TYPE_SUBURB ="string";
	public final String COLUMN_NAME_POSTCODE = "postcode";
	public final String COLUMN_TYPE_POSTCODE ="string";
	public final String COLUMN_NAME_PHONE = "phone";
	public final String COLUMN_TYPE_PHONE ="string";	
	public final String COLUMN_NAME_MOBILE = "mobile";
	public final String COLUMN_TYPE_MOBILE ="string";
	public final String COLUMN_NAME_EMAIL = "email";
	public final String COLUMN_TYPE_EMAIL ="string";
	public final String COLUMN_NAME_INCOME = "income";
	public final String COLUMN_TYPE_INCOME ="float";
	public final String COLUMN_NAME_ASSETVALUE = "assetvalue";
	public final String COLUMN_TYPE_ASSETVALUE ="float";
	public final String COLUMN_NAME_HEALTHY = "healthy";
	public final String COLUMN_TYPE_HEALTHY ="string";	
	public final String COLUMN_NAME_HELPLOG = "helplog";
	public final String COLUMN_TYPE_HELPLOG ="string";		

	public final String XMLTAG_PDSP = "pdsp";
	public final String XMLTAG_METADATA = "metadata";
	public final String XMLTAG_QUERY = "query";
	public final String XMLTAG_COLUMNSDEFINITION = "columnsdefinition";
	public final String XMLTAG_COLUMN = "column";
	public final String XMLTAG_RECORDS = "records";
	public final String XMLTAG_RECORD = "record";
	public final String XMLTAG_NAME = "name";
	public final String XMLTAG_TYPE = "type";
	
	/**
	 * Const definition for XML Params.
	 */		
	public final String XMLPARAM_USERID = "userid";
	public final String XMLPARAM_ROLE = "role";
	public final String XMLPARAM_STATUS = "status";	
	public final String XMLPARAM_SESSIONID = "sessionid";		
	/**
	 * Const definition for user status.
	 */			
	public final String USER_STATUS_SUBSCRIBED = "subscribed";
	public final String USER_STATUS_UNSUBSCRIBED = "unsubscribed";		
	public final String USER_STATUS_ADMIN = "admin";		
	/**
	 * Const definition for workflow status.
	 */		
	public final String WF_STATUS_INIT = "init";
	public final String WF_STATUS_REVIEWED = "reviewed";		
	public final String WF_STATUS_FILTERED = "filtered";		
	public final String WF_STATUS_PENDING = "pending";		
	public final String WF_STATUS_AUTHORIZED = "authorized";
	public final String WF_STATUS_REJECTED = "rejected";	
	/**
	 * Const definition for workflow sample data.
	 */		
	public final Integer WF_SAMPLE_NUMBER = 10;
	/**
	 * Const definition for message status.
	 */		
	public final String IMS_STATUS_SENT = "sent";		
	public final String IMS_STATUS_RECV = "recv";
	public final String IMS_STATUS_CLOSE = "close";		
	public final String IMS_MESSAGE_AUTHORIZED = "authorized";
	public final String IMS_MESSAGE_REJECTED = "rejected";	
	/**
	 * Const definition for task status.
	 */		
	public final String TASK_STATUS_CREATE = "create";		
	public final String TASK_STATUS_PROCESSING = "processing";
	public final String TASK_STATUS_CLOSE = "close";		
	/**
	 * Const definition for event.
	 */		
	public final int EVENT_QUERY_PRIVACYDATA = 1;		
	public final int EVENT_SHOW_MYTASKS = 2;
	public final int EVENT_SHOW_MYWORKFLOWS = 3;		
	public final int EVENT_SHOW_GOOGLEMAP = 4;
	public final int EVENT_SHOW_OPERATION = 5;
	public final int EVENT_SHOW_UNREVIEWEDWORKFLOWS = 6;
	public final int EVENT_SHOW_QUERY = 7;		
	public final int EVENT_SHOW_MESSAGES = 8;	
	public final int EVENT_SHOW_SUBSCRIBE = 9;
	public final int EVENT_SHOW_WORKFLOWS = 10;	
	/**
	 * Const definition for role.
	 */		
	public final String ROLE_ADMIN = "admin";		
	public final String ROLE_INDIVIDUAL = "individual";
	public final String ROLE_ORGANISATION = "organisation";
	/**
	 * Const parameter definition for workflow retrieving.
	 */		
	public final int WF_GET_ALL = 0;
	public final int WF_GET_BYTASKID = 1;
	public final int WF_GET_UNREVIEWED = 3;
}
